Skip to content

Conversation

@markpollack
Copy link
Member

Fix OpenAiChatClientIT.beanStreamOutputConverterRecords test that was failing intermittently when run as part of a test suite due to empty streaming chunks causing malformed JSON during aggregation.

Changes:

  • Filter out empty/null text chunks before aggregation to prevent malformed JSON
  • Replace silent return with explicit test failure when streaming aggregation produces empty results
  • Add debugging logs to aid troubleshooting of streaming response issues

The test now properly detects and reports streaming aggregation problems instead of silently skipping, improving CI reliability and error detection.

Auto-cherry-pick to 1.0.x
Fixes #4134

Signed-off-by: Mark Pollack [email protected]

Fix OpenAiChatClientIT.beanStreamOutputConverterRecords test that was failing
intermittently when run as part of a test suite due to empty streaming chunks
causing malformed JSON during aggregation.

Changes:
- Filter out empty/null text chunks before aggregation to prevent malformed JSON
- Replace silent return with explicit test failure when streaming aggregation
  produces empty results
- Add debugging logs to aid troubleshooting of streaming response issues

The test now properly detects and reports streaming aggregation problems
instead of silently skipping, improving CI reliability and error detection.

Auto-cherry-pick to 1.0.x
Fixes #4134

Signed-off-by: Mark Pollack <[email protected]>
@sobychacko sobychacko added this to the 1.1.0.M1 milestone Aug 13, 2025
@sobychacko sobychacko merged commit 85c194c into main Aug 13, 2025
2 checks passed
spring-builds pushed a commit that referenced this pull request Aug 13, 2025
Fix OpenAiChatClientIT.beanStreamOutputConverterRecords test that was failing
intermittently when run as part of a test suite due to empty streaming chunks
causing malformed JSON during aggregation.

Changes:
- Filter out empty/null text chunks before aggregation to prevent malformed JSON
- Replace silent return with explicit test failure when streaming aggregation
  produces empty results
- Add debugging logs to aid troubleshooting of streaming response issues

The test now properly detects and reports streaming aggregation problems
instead of silently skipping, improving CI reliability and error detection.

Fixes #4134

Signed-off-by: Mark Pollack <[email protected]>
(cherry picked from commit 85c194c)
scionaltera pushed a commit to scionaltera/spring-ai that referenced this pull request Sep 3, 2025
…projects#4135)

Fix OpenAiChatClientIT.beanStreamOutputConverterRecords test that was failing
intermittently when run as part of a test suite due to empty streaming chunks
causing malformed JSON during aggregation.

Changes:
- Filter out empty/null text chunks before aggregation to prevent malformed JSON
- Replace silent return with explicit test failure when streaming aggregation
  produces empty results
- Add debugging logs to aid troubleshooting of streaming response issues

The test now properly detects and reports streaming aggregation problems
instead of silently skipping, improving CI reliability and error detection.

Auto-cherry-pick to 1.0.x
Fixes spring-projects#4134

Signed-off-by: Mark Pollack <[email protected]>
chedim pushed a commit to couchbaselabs/spring-ai that referenced this pull request Sep 19, 2025
…projects#4135)

Fix OpenAiChatClientIT.beanStreamOutputConverterRecords test that was failing
intermittently when run as part of a test suite due to empty streaming chunks
causing malformed JSON during aggregation.

Changes:
- Filter out empty/null text chunks before aggregation to prevent malformed JSON
- Replace silent return with explicit test failure when streaming aggregation
  produces empty results
- Add debugging logs to aid troubleshooting of streaming response issues

The test now properly detects and reports streaming aggregation problems
instead of silently skipping, improving CI reliability and error detection.

Auto-cherry-pick to 1.0.x
Fixes spring-projects#4134

Signed-off-by: Mark Pollack <[email protected]>
@markpollack markpollack deleted the fix-openai-it-as-group-run branch September 26, 2025 13:36
Willam2004 pushed a commit to Willam2004/spring-ai that referenced this pull request Oct 11, 2025
…projects#4135)

Fix OpenAiChatClientIT.beanStreamOutputConverterRecords test that was failing
intermittently when run as part of a test suite due to empty streaming chunks
causing malformed JSON during aggregation.

Changes:
- Filter out empty/null text chunks before aggregation to prevent malformed JSON
- Replace silent return with explicit test failure when streaming aggregation
  produces empty results
- Add debugging logs to aid troubleshooting of streaming response issues

The test now properly detects and reports streaming aggregation problems
instead of silently skipping, improving CI reliability and error detection.

Auto-cherry-pick to 1.0.x
Fixes spring-projects#4134

Signed-off-by: Mark Pollack <[email protected]>
Signed-off-by: 家娃 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Make OpenAiChatClientIT more robust

3 participants